import { BaseEntity } from "src/baseEntity";
import { System } from "src/system/system.entity";
import { UserSys } from "src/user/userSys.entity";
import { Column, Entity, ManyToOne } from "typeorm";


export enum SeasType {
    上游 = "上游",
    下游 = "下游"
}
export enum SeasStatus {
    已归类 = "已归类",
    未归类 = "未归类"
}
@Entity("seas")
export class Seas extends BaseEntity {
    @ManyToOne(() => System)
    system: System

    @ManyToOne(() => UserSys)
    user: UserSys

    @Column({ nullable: true, comment: '公司名称' })
    companyName: string;

    @Column({ nullable: true, comment: '统一社会信用代码' })
    unifiedSocialCreditCode: string;

    @Column({ nullable: true, comment: '网址' })
    website: string;

    @Column({ nullable: true, comment: '所在地' })
    location: string;

    @Column({ nullable: true, comment: '详细地址' })
    address: string;

    @Column({ nullable: true, comment: '规模' })
    scale: string;

    @Column({ nullable: true, comment: '实缴金额' })
    paidAmount: number;

    @Column({ nullable: true, comment: '参保人数' })
    insuredCount: number;

    @Column({ nullable: true, comment: '是否自有平台' })
    hasOwnPlatform: boolean;

    @Column({ nullable: true, comment: '平台账号与密码' })
    platformAccountAndPassword: string;

    @Column({ nullable: true, comment: '平台网址' })
    platformWebsite: string;

    @Column({ nullable: true, comment: '对接人员' })
    contactPerson: string;

    @Column({ nullable: true, comment: '性别' })
    gender: boolean;

    @Column({ nullable: true, comment: '岗位' })
    position: string;

    @Column({ nullable: true, comment: '联系方式' })
    contactNumber: string;

    @Column({ nullable: true, comment: '公司评价' })
    companyEvaluation: string;

    @Column({ nullable: true, comment: '对接人评价' })
    contactPersonEvaluation: string;

    @Column({ nullable: true, comment: '跟踪进度' })
    trackingProgress: string;

    @Column({ nullable: true, comment: '合作意向' })
    cooperationIntention: string;

    @Column({ nullable: true, comment: '评级' })
    rating: string;

    @Column({ nullable: true, comment: '创建人' })
    creator: string;

    @Column({ nullable: true, comment: '供应商名称' })
    supplierName: string;

    @Column({ nullable: true, comment: '注册资金' })
    registeredCapital: string;

    @Column({ nullable: true, comment: '团队介绍' })
    teamIntroduction: string;

    @Column({ nullable: true, comment: '对接人姓名' })
    contactName: string;

    @Column({ nullable: true, comment: '对接人电话' })
    contactPhone: string;

    @Column({ nullable: true, comment: '对接人微信' })
    contactWeChat: string;

    @Column({ nullable: true, comment: '擅长类型' })
    expertise: string;

    @Column({ nullable: true, comment: '团队优势' })
    teamAdvantages: string;

    @Column({ nullable: true, comment: '能否开票' })
    canInvoice: boolean;

    @Column({ nullable: true, comment: '账户名称' })
    accountName: string;

    @Column({ nullable: true, comment: '账号' })
    accountNumber: string;

    @Column({ nullable: true, comment: '开户行' })
    bankName: string;

    @Column({ nullable: true, comment: '是否已合作' })
    hasCooperation: boolean;

    @Column({ nullable: true, comment: '合作份额' })
    cooperationShare: string;

    @Column({ nullable: true, comment: '预估类别', type: "enum", enum: SeasType })
    estimatedCategory: SeasType;

    @Column({ default: SeasStatus.未归类, comment: '状态', type: "enum", enum: SeasStatus })
    status: SeasStatus;

    @Column({ nullable: true, comment: '备注' })
    remark: string;
}